<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>视频动态</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>

	<body>

		<center>
			<h1>
				视频动态
			</h1>


			<table align="center" border="1">
				<tr>
					<th>
						&nbsp; id
						<br>
					</th>
					<th>
						课程名
					</th>
					<th>
						更改动态
					</th>
				</tr>

				<c:forEach var="list" items="${requestScope.data}" varStatus="index">
					<tr
						<c:if test="${index.index % 3 == 0 }"> style="background-color:rgb(240,240,240);"</c:if>
						<c:if test="${index.index % 2 == 0 }"> style="background-color:rgb(219,241,212);"</c:if>>
						<td>
							${list.id}
						</td>
						<td>
							${list.name}
						</td>
						<td>
						<form action="servlet_changevideodym" method="post">
							<input type="hidden" name="id" value="${list.id}" >
							<input type="text" name="content" value="${list.dynamic}">
							<input type="submit" value="提交" >
                            <input type="reset" value="重置">
                        </form>
						</td>
					</tr>
				</c:forEach>

			</table>
		</center>
	</body>
</html>
